<!DOCTYPE html>
<html>
<head>
    <title>找攻略</title>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/strategy.css"/>
    <link rel="stylesheet" href="/js/plugins/dialog/dialog.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap/js/bootstrap.min.js"></script>
    <script src="/js/plugins/dialog/dialog.min.js"></script>
    <script src="/js/plugins/jrender/jrender.js"></script>
    <script src="/js/common.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/index.css">
</head>

<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col-2">
            <a href="index.html">
                <span><i class="fa fa-chevron-left fa-2x"></i></span>
            </a>
        </div>
        <div class="col-10">
            <div class="input-group-sm search">
                <input class="form-control searchBtn" placeholder="请再次输入你需要的关键字">
            </div>
        </div>
    </div>
</div>

<!-- 选项卡对应的内容 -->
<div class="tab-content" id="pills-tabContent">
    <div class="tab-pane fade active show" id="pills-top">
        <hr>
        <div class="news" id="sceneCommend">
            <h6 class="news-title">景点推荐 </h6>
            <div class="row" render-loop="list">
                <div class="col-6">
                    <a href="sceneContent.html" render-fun="handle" render-key="list.id">
                        <img class="rounded" width="100%" height="110px"
                             render-src="list.coverUrl">
                    </a>
                    <p class="s_com">景点地址：
                        <span render-html="list.scene.address" style="font-family: 新宋体"></span>
                    </p>
                    <div class="caption">
                        <div class="promotion_footer">
                            <span render-html="list.title"></span>
                            <p><span>骡窝窝价: ¥<dfn render-html="list.scene.price"></dfn></span></p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(function () {
        // 发送ajax请求查询推荐景点
        $.get("/commends", function (data) {
            $("#sceneCommend").renderValues({list: data}, {
                handle: function (ele, value) {
                    ele.href = "/sceneContent.html?commendId=" + value;
                }
            });
        }, "json");
    });
</script>
</body>
</html>